<template>
    <el-table :data="lessorsData" style="width: 100%" height="80vh">
        <el-table-column fixed type="index" label="编号" width>
        </el-table-column>
        <el-table-column prop="account" label="账号"> </el-table-column>
        <el-table-column prop="password" label="密码"> </el-table-column>
        <el-table-column prop="name" label="姓名"> </el-table-column>

        <el-table-column prop="phone" label="联系方式"> </el-table-column>
        <el-table-column prop="state" label="状态"> </el-table-column>
        <el-table-column prop="credits" label="信用值"> </el-table-column>
    </el-table>
</template>

<script>
import { createNamespacedHelpers } from "vuex";
const { mapState, mapActions } = createNamespacedHelpers("lessors");
export default {
    data() {
        return {
            pageData:{
            currentpage:1,
            pagesize:5
        }
        };
    },
    mounted() {
        this.getLessors(this.pageData);
    },
    computed: {
        ...mapState(["lessorsData"]),
    },
    methods: {
        ...mapActions(["getLessors"]),
    },
};
</script>

<style>
</style>